package com.yfbao.horizon.inspection.prometheus;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PrometheusConfig {

    @Bean
    public PrometheusProperties prometheusProperties() {
        return new PrometheusProperties();
    }

    @Bean
    public PrometheusHttpClient prometheusHttpClient(PrometheusProperties properties) {
        return new PrometheusHttpClient(properties.getUrl());
    }
}

